﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MasterNhanSuTienLuong.Master" Inherits="System.Web.Mvc.ViewPage<DTTB.MV2.QUANLYNHANSUTIENLUONG.Models.FormBean.NhanVienModel.XeVanTaiForm>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
       <script type="text/javascript" language="javascript" src="<%= ResolveUrl("~/Content/Scripts/NhanVien/ThemMoiXeVanTai.js") %>"></script>
       <script type="text/javascript" language="javascript">
           $(document).ready(function() {
               $("#NgayDK").datepicker({ dateFormat: 'dd/mm/yy' });
               $("#NgayBH").datepicker({ dateFormat: 'dd/mm/yy' });
           });
       </script>
         <script language="javascript" type="text/javascript">
             $(document).ready(function () {
                 selectMenu("XeVanTai-DanhSachXeVanTai");
                 $("#XeVanTai-DanhSachXeVanTai").parent().attr("class", "expanded");
             });
    </script>
  <div class="box">
      <form id="form" action="#" class="formBox">
            <div class="breadcrumbs">
          <ul>
            <li class="home"><a href="">Quản lý nhân viên</a></li>
            <li><a href="">Thêm mới xe vận tải</a></li>
            <li>Page</li>
          </ul>
        </div>
        <div class="headlines">
            <h2>
                <span>Thêm mới xe vận tải</span>
            </h2>
             <%--   <a class="show-filter" href="#">show filter</a>--%>
        </div>
   
      <table class="table_input" style="padding-left: 20px;">
          <input type="hidden" id="Id" name="Id" value="<%= Model.Id %>" />
            <tr>
                <td>
                    <div id="Message" style="font-size: 12px; color: Blue; font-weight: bold">
                        <%=Model.Message%>
                    </div>
                    <div id="MessageError" style="font-size: 12px; color: Red; font-weight: bold">
                        <%=Model.MessageError%>
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <table style="width: 600px;">
                        <tr>
                            <td nowrap="nowrap" style="width: 110px;" class="lab">
                                Bảng kiểm soát <span class="red">(*)</span>
                            </td>
                            <td>
                                <input type="text" id="BangKiemSoat" name="BangKiemSoat" value="<%=Model.BangKiemSoat %>"style="width: 50%" />
                                   <div class="red" id="BangKiemSoatMessage">
                                </div>
                            </td>
                        </tr>
                     <tr>
                            <td nowrap="nowrap" style="width: 110px;" class="lab">
                               năm sản xuất<span class="red">(*)</span>
                            </td>
                            <td>
                                <input type="text" id="NamSanXuat" name="NamSanXuat" value="<%=Model.NamSanXuat %>"
                                    style="width: 90%" />
                                <div class="red" id="NamSanXuatMessage">
                                </div>
                            </td>
                            <td nowrap="nowrap" class="style1" class="lab">
                               Hết năm<span class="red">(*)</span>
                            </td>
                            <td>
                                <input type="text" id="NamHanSuDung" name="NamHanSuDung" value="<%=Model.NamHanSuDung %>" style="width: 89%" />
                                   <div class="red" id="NamHanSuDungMessage">
                                </div>
                            </td>
                        </tr>
                        
                         <tr>
                            <td nowrap="nowrap" style="width: 110px;" class="lab">
                                Trọng tải<span class="red">(*)</span>
                            </td>
                            <td colspan="3">
                                <input type="text" id="TrongTai" name="TrongTai" value="<%=Model.TrongTai %>" style="width: 95.5%" />
                                <div class="red" id="TrongTaiMessage">
                                </div>
                            </td>
                        </tr>
                      
                         <tr>
                            <td nowrap="nowrap" style="width: 110px;" class="lab">
                                Loại Thùng xe<span class="red">(*)</span>
                            </td>
                            <td colspan="3">
                                <%=Html.DropDownList("IdDangThungXe", Model.CbThungXe, "---- Chọn Thùng xe ----", new { Style = " width:96%" })%>
                                <div class="red" id="IdDangThungXeMessage">
                                </div>
                         </td>
                        </tr>
                       
                     
                        <tr>
                            <td nowrap="nowrap" style="width: 110px;" class="lab">
                                Hạn kiểm định xe<span class="red">(*)</span>
                            </td>
                            <td>
                                <input type="text" id="NgayDK" name="NgayDK" value="<%=Model.NgayDK %>"
                                    style="width: 90%" />
                                <div class="red" id="HanKiemDinhXeMessage">
                                </div>
                            </td>
                            <td nowrap="nowrap" class="style1" class="lab">
                               Hết hạn bảo hiểm<span class="red">(*)</span>
                            </td>
                            <td>
                                <input type="text" id="NgayBH" name="NgayBH" value="<%=Model.NgayBH %>" style="width: 89%" />
                                <div class="red" id="HetHanBaoHiemMessage">
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td colspan="3" style="margin-top: 10px" class="btn-submit">
                                <input type="button" class="button" id="Button2" name="btnSave" value="Lưu" onclick="javascript:DoSave();" />
                                <%if (Model.Kt == true)
                                  { %>
                                        <input type="button" class="button" id="Button1" name="btnSave" value="Lưu và cập nhật lịch sử ngày tháng" onclick="javascript:CapNhatLichSuNgayThang();" />
                                 <% } %>
                                <div style="display: inline">
                                </div>
                                <%-- <input type="button" id="btnDelete" name="btnDelete" value="Xóa" onclick="javascript:DoDelete();" />--%>
                                <input type="button" id="btnbtBack" class="button" name="btnBack" value="Trở về" onclick="javascript:DoBack();" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        </form>
        </div>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
